package edoc.dao.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import edoc.dao.CategoryDao;
import edoc.entity.EdocCategory;

public class CategoryDaoImpl extends HibernateDaoSupport  implements CategoryDao {

	@Override
	public List<EdocCategory> findAll() {
		List<EdocCategory> categoryList=null;
		try {
			categoryList=this.getHibernateTemplate().find("from EdocCategory");
		} catch (DataAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return categoryList;
	}


}
